﻿using Entity;
using System.Collections.Generic;
using Utils;

namespace DataBaseConnect.App
{
    public interface IButtonService
    {
        /// <summary>
        /// 获取所有按钮样式&&查询
        /// </summary>
        /// <param name="ButtonStyleName">按钮样式名称</param>
        /// <returns></returns>
        List<ButtonStyle> GetButtonStyleList(string ButtonStyleName);

        /// <summary>
        /// 新增按钮样式信息
        /// </summary>
        /// <param name="Input">按钮样式实体</param>
        /// <returns></returns>
        ReceiveStatus AddButtonStyleMsg(ButtonStyle Input);

        /// <summary>
        /// 编辑按钮样式信息
        /// </summary>
        /// <param name="Input">按钮样式实体</param>
        /// <returns></returns>
        ReceiveStatus EditButtonStyleMsg(ButtonStyle Input);

        /// <summary>
        /// 根据按钮样式id获取对应的按钮样式
        /// </summary>
        /// <param name="ButtonStyleId">按钮样式id</param>
        /// <returns></returns>
        ButtonStyle GetButtonStyleIdMsg(int ButtonStyleId);

        /// <summary>
        /// 新增按钮信息
        /// </summary>
        /// <param name="Input">按钮信息实体</param>
        /// <returns></returns>
        ReceiveStatus AddButtonMsg(Button Input);

        /// <summary>
        /// 编辑按钮信息
        /// </summary>
        /// <param name="Input">按钮信息实体</param>
        /// <returns></returns>
        ReceiveStatus EditButtonMsg(Button Input);

        /// <summary>
        /// 根据菜单id查找按钮权限表
        /// </summary>
        /// <param name="MenuId">菜单id</param>
        /// <param name="RoleId">角色id</param>
        /// <returns></returns>
        List<ButtonRole> GetButtonRoleByMenuIdList(int MenuId, int RoleId);

        /// <summary>
        /// 根据菜单id获得按钮
        /// </summary>
        /// <param name="MenuId">菜单id</param>
        /// <returns></returns>
        List<Button> GetAllButtonMenuIdList(int MenuId);

        /// <summary>
        /// 根据按钮id获得按钮信息
        /// </summary>
        /// <param name="ButtonId">按钮id</param>
        /// <returns></returns>
        Button GetAllButtonByButtonIdMsg(int ButtonId);
    }
}
